import request from '@/utils/request'

// 查询热门城市列表
export function listHotCity(query) {
  return request({
    url: '/system/hotCity/list',
    method: 'get',
    params: query
  })
}

// 查询热门城市详细
export function getHotCity(id) {
  return request({
    url: '/system/hotCity/' + id,
    method: 'get'
  })
}

// 新增热门城市
export function addHotCity(data) {
  return request({
    url: '/system/hotCity',
    method: 'post',
    data: data
  })
}

// 修改热门城市
export function updateHotCity(data) {
  return request({
    url: '/system/hotCity',
    method: 'put',
    data: data
  })
}

// 删除热门城市
export function delHotCity(id) {
  return request({
    url: '/system/hotCity/' + id,
    method: 'delete'
  })
}

// 导出热门城市
export function exportHotCity(query) {
  return request({
    url: '/system/hotCity/export',
    method: 'get',
    params: query
  })
}